Skip to main content

Exchnage token

POST /api/v1/BankStatement/exchange-token

Description

This endpoint is used to exchange a token for bank statement verification.

Headers:

  • Accept-Language: optional, allows changing default response message language, type: string

Content-Type:

  • text/plain
  • aplication/json
  • text/json

ApiKey:

  • No API key required

Request Body:

  • Type: JSON object
  • Schema: $ref to ExchangeTokenCommand schema

URL: /api/v1/BankStatement/exchange-token

Query Parameters:

  • None

params:

  • Not applicable

Response: The response is a "Success" status with a code of 200.

Schema:

    jsonCopy code{
"token": "example_token",
"expires_in": 3600 // Example expiration time in seconds
}

Error Codes:

  • 400: Bad Request
  • 404: Resource not found
  • 500: Internal server error

Example:

    bashCopy codePOST /api/v1/BankStatement/exchange-token
{
"refresh_token": "example_refresh_token"
}

Response:

    jsonCopy codeHTTP/1.1 200 OK
{
"token": "new_example_token",
"expires_in": 3600
}

Headers


Accept-Language Change default response message language from English(en). Available languages fr,en Content-Type application/json

Accept text/plain

Body raw(json)

    {
"code": "<string>"
}